package com.qf.controller;

import com.qf.pojo.resVo.BaseResult;
import com.qf.service.RatationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页轮播图
 */
@RestController
@RequestMapping("/portal")
public class RatationController {

    @Autowired
    RatationService ratationService;

    /**
     * 查询所有的轮播图
     * @return
     */
    @RequestMapping(value = "/findRatation",method = RequestMethod.POST)
    public BaseResult findRatation(){
        return ratationService.findAll();
    }

}
